package abs.domain;

import java.io.Serializable;

import java.lang.StringBuilder;

import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

import javax.xml.bind.annotation.*;

import javax.persistence.*;

/**
 */

@Entity
@NamedQueries({
		@NamedQuery(name = "findAllMonedass", query = "select myMonedas from Monedas myMonedas"),
		@NamedQuery(name = "findMonedasByCo010clca", query = "select myMonedas from Monedas myMonedas where myMonedas.co010clca = ?1"),
		@NamedQuery(name = "findMonedasByCo010clcaContaining", query = "select myMonedas from Monedas myMonedas where myMonedas.co010clca like ?1"),
		@NamedQuery(name = "findMonedasByCo010desc", query = "select myMonedas from Monedas myMonedas where myMonedas.co010desc = ?1"),
		@NamedQuery(name = "findMonedasByCo010descContaining", query = "select myMonedas from Monedas myMonedas where myMonedas.co010desc like ?1"),
		@NamedQuery(name = "findMonedasByCo010mone", query = "select myMonedas from Monedas myMonedas where myMonedas.co010mone = ?1"),
		@NamedQuery(name = "findMonedasByCo010moneContaining", query = "select myMonedas from Monedas myMonedas where myMonedas.co010mone like ?1"),
		@NamedQuery(name = "findMonedasByPrimaryKey", query = "select myMonedas from Monedas myMonedas where myMonedas.co010clca = ?1") })
@Table(catalog = "absV2", name = "co010")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(namespace = "absWeb/abs/domain", name = "Monedas")
public class Monedas implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * Codigo Moneda
	 * 
	 */

	@Column(name = "co010clca", length = 3, nullable = false)
	@Basic(fetch = FetchType.EAGER)
	@Id
	@XmlElement
	String co010clca;
	/**
	 * Moneda NOminal o Extranjera
	 * 
	 */

	@Column(name = "co010mone", length = 1)
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String co010mone;
	/**
	 * Descripcion
	 * 
	 */

	@Column(name = "co010desc", length = 20)
	@Basic(fetch = FetchType.EAGER)
	@XmlElement
	String co010desc;

	/**
	 * Codigo Moneda
	 * 
	 */
	public void setCo010clca(String co010clca) {
		this.co010clca = co010clca;
	}

	/**
	 * Codigo Moneda
	 * 
	 */
	public String getCo010clca() {
		return this.co010clca;
	}

	/**
	 * Moneda NOminal o Extranjera
	 * 
	 */
	public void setCo010mone(String co010mone) {
		this.co010mone = co010mone;
	}

	/**
	 * Moneda NOminal o Extranjera
	 * 
	 */
	public String getCo010mone() {
		return this.co010mone;
	}

	/**
	 * Descripcion
	 * 
	 */
	public void setCo010desc(String co010desc) {
		this.co010desc = co010desc;
	}

	/**
	 * Descripcion
	 * 
	 */
	public String getCo010desc() {
		return this.co010desc;
	}

	/**
	 */
	public Monedas() {
	}

	/**
	 * Copies the contents of the specified bean into this bean.
	 *
	 */
	public void copy(Monedas that) {
		setCo010clca(that.getCo010clca());
		setCo010mone(that.getCo010mone());
		setCo010desc(that.getCo010desc());
	}

	/**
	 * Returns a textual representation of a bean.
	 *
	 */
	@Override
	public String toString() {

		StringBuilder buffer = new StringBuilder();

		buffer.append("co010clca=[").append(co010clca).append("] ");
		buffer.append("co010mone=[").append(co010mone).append("] ");
		buffer.append("co010desc=[").append(co010desc).append("] ");

		return buffer.toString();
	}

	/**
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = (prime * result + ((co010clca == null) ? 0 : co010clca.hashCode()));
		return result;
	}

	/**
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj == this)
			return true;
		if (!(obj instanceof Monedas))
			return false;
		Monedas equalCheck = (Monedas) obj;
		if ((co010clca == null && equalCheck.co010clca != null) || (co010clca != null && equalCheck.co010clca == null))
			return false;
		if (co010clca != null && !co010clca.equals(equalCheck.co010clca))
			return false;
		return true;
	}
}
